home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
009
/
sidekick.tip
< prev
next >
Wrap
Text File
|
1984-11-12
|
2KB
|
58 lines
Sidekick Tip
------------
By Bill Todd
As useful as it is, Borland International's Sidekick still has
some annoying problems.
First, if you've ever hit Ctrl-Alt, expecting the Sidekick menu
to appear, and instead have been greeted by a strange chirping
sound, just strike the enter key and the menu will be displayed.
Second, if you have ever tried to use the DOS print command
while Sidekick was resident in memory you have probably been
amazed at how slow your printer runs. I have found the following
batch file, which I call PR.BAT, to be a reasonable substitute
for the DOS print command.
echo off
:prntloop
if %1*==* goto exit
if not exist %1 goto nofile
copy %1 prn: > nul:
copy formfeed.dat prn: > nul:
:nofile
shift
goto prntloop
:exit
echo on
To print one or more files type PR FILENAME1 FILENAME2 FILENAME3
etc. The number of files is limited only by the length of the
DOS command line which, I believe, is 128 bytes.
Unlike the DOS print command, this batch file does not run in the
background so you must wait until the printing is done before
you can do anything else.
In order for this batch file to work you must have the file
FORMFEED.DAT on the diskette with PR.BAT. Create FORMFEED.DAT
with your favorite editor and put the single letter A in the file.
Then change the A to a formfeed character, hex 0C, using debug
as follows.
debug formfeed.dat
- e 0100 0C
- w
Writing 0002 bytes
- q
This batch file has one other nice feature. It does not use the
substantial amount of memory that the resident part of DOS Print
requires.